//
//  TrackModel.h
//  project
//
//  Created by 黄建华 on 2017/12/7.
//  Copyright © 2017年 黄建华. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>
@interface TrackModel : NSObject
@property (nonatomic, strong) NSString  *user_id;        // 用户
@property (nonatomic, strong) NSString  *date;           // 日期
@property (nonatomic, assign) float     longitude;       // 经度
@property (nonatomic, assign) float     latitude;        // 纬度
@property (nonatomic, assign) NSInteger     totalDistances;  // 总里程 (小数点后2位 km/h)
@property (nonatomic, assign) NSInteger calorss;             // 总消耗
@property (nonatomic, assign) NSInteger sportTotalTime;  // 总耗时 (时分秒 根据需要)
@property (nonatomic, strong) NSString    *startTime;      // 运动开始时间
@property (nonatomic, strong) NSDate    *endTime;        // 运动结束时间
@property (nonatomic, assign) float     averageSpeed;    // 平均时速(小数点后2位 km/h)
@property (nonatomic, assign) float     maxSpeed;        // 最快时速(小数点后2位 km/h)
@property (nonatomic, assign) NSInteger averagePace;      //秒
// 数组里面应该是个字典 key:1 tracklongitude tracklatitude trackTime  当前轨迹经度 纬度 时间点
@property(nonatomic, strong) NSString        *address;
@property (nonatomic, strong) NSArray *trackArray;
@property (nonatomic, strong) NSString       *imagePath;
@property (nonatomic, strong) UIImage       *imagePathLocal;
+ (TrackModel *)initWithDate:(NSDate *)date;
+ (NSMutableArray *)getUserInfoFromDBWithUserID:(NSString *)userID;
+ (TrackModel *)initWithDic:(NSDictionary *)dic;
@property (nonatomic, assign) BOOL shareStrava;
@end

